package top.lyjwn.todo.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(
        prefix = "lyjwn.redis"
)
public class RedisProperties {

    private String host;

    private Integer port = 6379;

    private String password;

    private Integer index = 0;

    /**
     * 自启动以来活动的进程数最大值
     */
    private Integer maxActive = 5000;

    /**
     * 最大空闲连接数
     */
    private Integer maxIdle = 10;

    /**
     * 最小空闲连接数
     */
    private Integer minIdle = 1;

    /**
     * 最大等待时间
     */
    private Integer maxWait = 5000;


    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Integer getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
    }

    public Integer getMaxIdle() {
        return maxIdle;
    }

    public void setMaxIdle(Integer maxIdle) {
        this.maxIdle = maxIdle;
    }

    public Integer getMinIdle() {
        return minIdle;
    }

    public void setMinIdle(Integer minIdle) {
        this.minIdle = minIdle;
    }

    public Integer getMaxWait() {
        return maxWait;
    }

    public void setMaxWait(Integer maxWait) {
        this.maxWait = maxWait;
    }
}
